﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using dotUML.System;

namespace dotUML.Core.Common
{
    /// <summary>
    /// ModelFactory is a factory class, which creates instances 
    /// of Model class and provides them via IModel interface.    
    /// </summary>
    public static class ModelFactory
    {
        /// <summary>
        /// Creates an instance of a model.
        /// </summary>
        /// <returns>Returns an instance of a model via IModel interface.</returns>
        public static IModel GetModel()
        {
            return (IModel)InstrumentationManager.InstrumentObject(new Model(), EInstrumentationType.Logging);
        }
    }
}
